/*
 * Copyright (c) 2006 - 2022, webrx.cn All rights reserved.
 *
 */
package cn.demo;

import java.util.function.IntConsumer;

/**
 * <p>Project: app2022 - IntConsumerDemo
 * <p>Powered by webrx On 2022-01-26 09:07:17
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class IntConsumerDemo {
    public static void main(String[] args) {
        //IntConsumer ic = (e) -> System.out.println(e);
        //IntConsumer ic = e -> System.out.println(e);
        //IntConsumer ic = e -> System.out.printf("%02d", e);
        //IntConsumer ic = System.out::println;
        IntConsumer ic = i -> System.out.println(i * i);
        ic.accept(100);
    }
}
